package com.punch.order.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.punch.common.model.SuperEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 订单商品快照表
 * </p>
 *
 * @author wjj
 * @since 2020-12-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("order_goods_snapshot")
public class OrderGoodsSnapshot extends SuperEntity<OrderGoodsSnapshot> {

    private static final long serialVersionUID = 1L;

    /**
     * 商品订单编号
     */
    @TableField("order_sn")
    private String orderSN;

    /**
     * 主订单关联id
     */
    @TableField("order_id")
    private Long orderId;

    /**
     * 课程id
     */
    @TableField("course_id")
    private Long courseId;

    /**
     * 班级id
     */
    @TableField("course_class_id")
    private Long courseClassId;


    /**
     * 商品id
     */
    @TableField("goods_id")
    private Long goodsId;

    /**
     * 商品封面
     */
    @TableField("goods_cover")
    private String goodsCover;

    /**
     * 商品id
     */
    @TableField("goods_title")
    private String goodsTitle;

    /**
     * 商品支付金额,单位分
     */
    @TableField("goods_amount")
    private Integer goodsAmount;

    /**
     * 教具名称
     */
    @TableField("goods_name")
    private String goodsName;


    @Override
    protected Serializable pkVal() {
        return null;
    }

}
